package com.ruoyi.common.ums.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.utils.DateUtils;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员收藏的商品
 *
 * @author tanxingxian
 * @date 2021-12-22 15:23
 */
@Data
@TableName("yyt_ums_member_collect_spu")
public class YytUmsMemberCollectSpu implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 会员id
     */
    private String memberId;
    /**
     * spuId
     */
    private String spuId;
    /**
     * 商品名称
     */
    private String spuName;
    /**
     * 商品图片
     */
    private String spuImage;
    /**
     * 规格id
     */
    private String skuId;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 收藏时间
     */
    @JsonFormat(pattern = DateUtils.D, timezone = "GMT+8")
    private LocalDateTime createTime;

}
